package cn.ithers.blog.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: zhanghuan
 * @date: 2020/11/6 14:03
 * @description: 发表文章时要填写的参数
 */

@Data
public class ArticleDTO implements Serializable {


    @ApiModelProperty(value = "文章ID")
    private String id;

    @NotNull
    @ApiModelProperty(value = "文章标题",required = true)
    private String title;

    @NotNull
    @ApiModelProperty(value = "分类ID",required = true)
    private String categoryId;

    @NotNull
    @ApiModelProperty(value = "文章内容",required = true)
    private String content;

    @NotNull
    @ApiModelProperty(value = "文章类型（0表示富文本，1表示markdown）",required = true)
    private String type;

    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "状态（0表示删除，1表示已经发布，2表示草稿，3.表示置顶）")
    private String state = "1";

    @ApiModelProperty(value = "摘要")
    private String summary;

    @NotNull
    @ApiModelProperty(value = "标签",required = true)
    private String label;

}
